import axios from 'axios';
import store from '../store';

export function getDeletePreview(user){
    return axios.get('/getDeletePreview', {
        params: {
            name: user.name,
            tel: user.acount,
            pw: user.password
        }
    })
    .then(function(response){
        store.dispatch({
            type: 'GET_RECYCLE',
            recycleList: response.data.recycleList
        })

    })
    .catch(function(err){
        console.log(err);
    })
}